package com.ruoyi.background.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户站点答题主记录对象 app_site_topic_user
 * 
 * @author susu
 * @date 2024-08-27
 */
public class AppSiteTopicUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String nickName;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 点位id */
    @Excel(name = "点位id")
    private Long siteId;

    /** 点位名称 */
    @Excel(name = "点位名称")
    private String siteName;

    /** 题目总数 */
    @Excel(name = "题目总数")
    private Integer totalSum;

    /** 正确的数量 */
    @Excel(name = "正确的数量")
    private Integer trueSum;

    /** 准确率 */
    @Excel(name = "准确率")
    private String accuracy;

    /** 是否全正确 */
    @Excel(name = "是否全正确")
    private Integer isAllRight;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setSiteId(Long siteId) 
    {
        this.siteId = siteId;
    }

    public Long getSiteId() 
    {
        return siteId;
    }
    public void setSiteName(String siteName) 
    {
        this.siteName = siteName;
    }

    public String getSiteName() 
    {
        return siteName;
    }
    public void setTotalSum(Integer totalSum) 
    {
        this.totalSum = totalSum;
    }

    public Integer getTotalSum() 
    {
        return totalSum;
    }
    public void setTrueSum(Integer trueSum) 
    {
        this.trueSum = trueSum;
    }

    public Integer getTrueSum() 
    {
        return trueSum;
    }
    public void setAccuracy(String accuracy) 
    {
        this.accuracy = accuracy;
    }

    public String getAccuracy() 
    {
        return accuracy;
    }
    public void setIsAllRight(Integer isAllRight) 
    {
        this.isAllRight = isAllRight;
    }

    public Integer getIsAllRight() 
    {
        return isAllRight;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("nickName", getNickName())
            .append("deptId", getDeptId())
            .append("siteId", getSiteId())
            .append("siteName", getSiteName())
            .append("totalSum", getTotalSum())
            .append("trueSum", getTrueSum())
            .append("accuracy", getAccuracy())
            .append("isAllRight", getIsAllRight())
            .append("createTime", getCreateTime())
            .toString();
    }
}
